package com.security.config.filter;

import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

@Component("arbcServiceFilter")
public class ARBCServiceFilter {

    public boolean hasPermission(HttpServletRequest req, Authentication auth){
        Object principal = auth.getPrincipal();
        /*if (req.getRequestURI().equals("/jwtsecurity/user")){
            System.out.println(req.getRequestURI());
            return false;
        }*/
        System.out.println("arbcServiceFilter=="+req.getRequestURI());
        return true;
    }
}
